Method and apparatus for creating help functions

ABSTRACT

A help editor is provided that allows a help writer to display and interact with dialog boxes with graphical control objects (e.g., a graphical button) while writing help functions. The help functions provide context-sensitive help for the graphical control objects for dialog boxes used in a computer software application. The help editor generates computer source code that allows help writers to test context-sensitive help functions without executing the computer software application they will be used in. The computer source code is used to coordinate help functionality between help writers and software developers during the creation of a computer software applications.

FIELD OF INVENTION

The present invention relates to creating help functions for computer software. More particularly it relates to the creation of context-sensitive help functions with a help editor.

BACKGROUND AND SUMMARY OF THE INVENTION

When computer software is created, it is desirable to create a set of help functions that are included with the computer software. The help functions explain various components of the computer software using text and graphics. They can be invoked by a user when the user has a question about the functionality of a particular computer software component or encounters a problem with the computer software during use.

Many computer operating systems such as Windows 95 and Windows NT by Microsoft Corporation of Redmond, Wash. and others use dialog boxes in windows created by the operating system to display help information. A dialog box is a pop-up box which displays additional information for a user and typically contains one or more graphical objects such as graphical buttons that can be selected. Several windowed operating systems such as Windows 95 and Windows NT also provide a context-sensitive help system. A context-sensitive help system allows a user to select with a mouse or other pointing device a graphical control in a dialog box, and then with another selection request help on the graphical control. A graphical control is typically a graphical button, pull-down menu, or other graphical entity that accepts input from a user (e.g., a "click" from a mouse). An example of a graphical control is an Object Linking and Embedding (OLE) control or an ActiveX control known to those skilled in the art. For more information on OLE controls see OLE Controls Inside Out, by Adam Denning, Microsoft Press, Redmond, Wash., 1995. In response to the selection of a graphical control, an operating system help system typically displays a pop-up box containing help information that describes the control's purpose.

During the software development process, help functions are written by help writers, and the remaining portions of the computer software are created by software developers. Help writers are typically responsible for creating the information source files which contain the help information, and assigning unique help function identifiers to help components being developed. The software developers use the help information and help function identifiers as they create a computer software application. In some instances, the help writers and the software developers may be the same individuals.

Incorporating help functions into computer software presents some difficult problems. The graphical controls used within the computer software may change many times during the software development process. Some controls may be added or changed while other controls are removed. The help writers and software developers have to coordinate these changes. The help writers have to update existing help information and help function identifiers based on the changes to the graphical controls. In addition, help writers may have to create additional help information and help function identifiers for the new controls. Software developers also have to update their source code to reflect any changes made by the help writers. If the help writers or software developers do not coordinate their changes, the help functions in the computer software created will not function properly.

Another problem with creating help functions is that multiple help functions may be created that use the same non-unique help identifier for a single graphical control. In this case, the help system will not be able to display correct help information for such a control. Yet another problem associated with creating help functions is that certain graphical controls require special handling. For example, the "OK" and "CANCEL" controls are typically displayed as graphical buttons in a dialog box and have default help information provided by the windowed operating system. As a result, help writers typically do not provide help information or help identifiers for such controls and may not properly coordinate any changes with the software developers that may be required to the corresponding help functions for such controls.

Yet another problem associated with creating help functions is that some dialog boxes with graphical controls cannot be viewed when a computer software application is executed. For example, some dialog boxes may only be displayed if optional software components are installed. As a result, the computer software application may contain help functions and help identifiers that will never be used.

Yet another problem associated with creating help functions is that it is not possible for help writers to immediately test new help functions. The new help functions and the computer software which contain the help functions both have to be completed before any testing can occur.

Yet another problem associated with creating help functions is that complex computer software may contain hundreds of controls in numerous dialog boxes. A help writer may create help information or assign a help identifier to a help function that already exits, while a software developer may use two or more types of help information or help identifiers for the same control. This may create confusion for the help system as well as a software developer trying to use the help functions.

In accordance with an illustrative embodiment of the present invention, the problems associated with creating help functions are overcome. An illustrative embodiment of the present invention includes a method and apparatus for creating help functions with a dialog box help editor. The method and system is used to create context-sensitive help functions. The method for creating such help functions includes locating dialog boxes within a selected computer software application for which context-sensitive help functions will be created. In response to a selection input, a dialog box from the located dialog boxes is displayed on a display device. In response to another selection input, a help function template is created for a selected graphical control object in the selected dialog box. Help information is received and incorporated into the help function template. Source code is generated for a context-sensitive help function for the selected graphical control with information from the help function template.

The dialog box help editor in an illustrative embodiment of the present invention includes a novel construction of modules: a dialog-box-creation-and-display-module which displays a dialog box; a dialog-box-data-organization-module which organizes and manipulates dialog box data; a help-topic-creation-module which creates help information; a dialog-box-change-tracking-module which checks for changes made to the components (e.g., graphical controls) in a dialog box; a dialog-box-code-generation-module which generates computer source code for help functions; and an on-demand-help-testing-module which allows help writers to see the help functions they are writing as they will appear in a finished computer software application without executing the software application.

The foregoing and other features and advantages of an illustrative embodiment of the present invention will be more readily apparent from the following detailed description, which proceeds with reference to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a computer system used to implement an illustrative embodiment of the present invention.

FIG. 2 is a flow diagram illustrating a method for creating help functions in an illustrative embodiment of the present invention.

FIG. 3 is a block diagram illustrating a help editor for creating help functions in an illustrative embodiment of the present invention.

FIG. 4 is a flow diagram illustrating the locating of dialog box templates in an illustrative embodiment of the present invention.

FIG. 5 is a flow diagram illustrating the creation of help information in an illustrative embodiment of the present invention.

FIG. 6 is a flow diagram illustrating change tracking of dialog boxes in an illustrative embodiment of the present invention.

FIG. 7 is a flow diagram illustrating on-demand help testing in an illustrative embodiment of the present invention.

FIG. 8 is a flow diagram further illustrating on-demand help testing in an illustrative embodiment of the present invention.

FIG. 9 is a flow diagram illustrating source code generation for help functions in an illustrative embodiment of the present invention.

DETAILED DESCRIPTION OF AN ILLUSTRATIVE EMBODIMENT

Referring to FIG. 1, an operating environment for an illustrative embodiment of the present invention is a computer system 10 with a computer 12 that comprises at least one high speed processing unit (CPU) 14, in conjunction with a memory system 16, an input device 18, and an output device 20. These elements are interconnected by a bus structure 22.

The illustrated CPU 14 is of familiar design and includes an ALU 24 for performing computations, a collection of registers 26 for temporary storage of data and instructions, and a control unit 28 for controlling operation of the system 10. Any of a variety of processors, including those from Digital Equipment, Sun, MIPS, IBM, Motorola, NEC, Intel, Cyrix, AMD, Nexgen and others are equally preferred for CPU 14. Although shown with one CPU 14, computer system 10 may alternatively include multiple processing units.

The memory system 16 includes main memory 30 and secondary storage 32. Illustrated main memory 30 is high speed random access memory (RAM) and read only memory (ROM). Main memory 30 can include any additional or alternative high speed memory device or memory circuitry. Secondary storage 32 takes the form of long term storage, such as ROM, optical or magnetic disks, organic memory or any other volatile or non-volatile mass storage system. Those skilled in the art will recognize that memory 16 can comprise a variety and/or combination of alternative components.

The input and output devices 18, 20 are also familiar. The input device 18 can comprise a keyboard, mouse, pointing device, audio device (e.g., a microphone, etc.), or any other device providing input to the computer system 10. The output device 20 can comprise a display, a printer, an audio device (e.g., a speaker, etc.), or other device providing output to the computer system 10. The input/output devices 18, 20 can also include network connections, modems, or other devices used for communications with other computer systems or devices.

As is familiar to those skilled in the art, the computer system 10 further includes an operating system and at least one application program. The operating system is a set of software which controls the computer system's operation and the allocation of resources. The application program is a set of software that performs a task desired by the user, making use of computer resources made available through the operating system. Both are resident in the illustrated memory system 16.

In accordance with the practices of persons skilled in the art of computer programming, the present invention is described below with reference to acts and symbolic representations of operations that are performed by computer system 10, unless indicated otherwise. Such acts and operations are sometimes referred to as being computer-executed. It will be appreciated that the acts and symbolically represented operations include the manipulation by the CPU 14 of electrical signals representing data bits which causes a resulting transformation or reduction of the electrical signal representation, and the maintenance of data bits at memory locations in memory system 16 to thereby reconfigure or otherwise alter the computer system's operation, as well as other processing of signals. The memory locations where data bits are maintained are physical locations that have particular electrical, magnetic, optical, or organic properties corresponding to the data bits.

The data bits may also be maintained on a computer readable medium including magnetic disks, and any other volatile or non-volatile mass storage system readable by the computer 12. The computer readable medium includes cooperating or interconnected computer readable media, which exist exclusively on computer system 10 or are distributed among multiple interconnected computer systems 10 that may be local or remote.

In an illustrative embodiment of the present invention, the computer system 10 preferably uses the Windows 95 client/server operating system. However, other client/server operating systems (e.g. Windows NT, Windows CE, by Microsoft Corporation, OS/2, by IBM, etc.) could also be used. A client/server operating system is an operating system which is divided into multiple processes of two different types: server processes, each of which typically implements a single set of services, and client processes, which request a variety of services from the server processes. Object oriented programming is used to design the client/server operating system, and applications which run under the client/server operating system, where objects represent system resources.

For example, the Windows 95 client/server operating system provides shareable resources, such as files, memory, processes and threads, which are implemented as "objects" and are accessed by using "object services." As is well known in the art, an "object" is a data structure whose physical format is hidden behind an object type definition. Data structures, also referred to as records or formats, are organization schemes applied to data so that it can be interpreted, and so that specific operations can be performed on that data. Such data structures impose a physical organization on the collection of data stored within computer memory 16 and represent specific electrical, magnetic or organic elements.

An "object type," also called an "object class," comprises a data-type, services that operate on instances of the data type, and a set of object attributes. An "object attribute" is a field of data in an object that partially defines that object's state. An "object service" implements and manipulates objects, usually by reading or changing the object attributes. "Object oriented design" is a software development technique in which a system or component is expressed using objects.

An object typically has two components: a function table containing a pointer to each object member function (i.e., sometimes known as an object method) defined in the object's class, and a data block containing the current values for each object variable (i.e., data members, sometimes known as object properties). An application has some reference to an object through an object pointer. An application obtains this object reference by using some type of function call (direct or implied) in which that function allocates an object block in computer memory, initializes the function table, and returns the reference to the computer memory to an application. The computer memory may be local or distributed on a remote computer.

The Windows 95 operating system allows users to execute more than one program at a time by organizing the many tasks that it must perform into "processes." The operating system allocates a portion of the computer's resources to each process and ensures that each process's program is dispatched for execution at the appropriate time and in the appropriate order.

In an illustrative embodiment of the present invention, processes are implemented as objects. A computer software application is executed on computer system 10 as a process. A process object comprises the following elements: an executable program, a private address space; system resources (e.g., communication ports and files) that the operating system allocates to the process as the program executes; and at least one "thread of execution." A "thread" is the entity within a process that the operating system kernel schedules for execution. As is well known in the art, each thread has an associated "context" which is the volatile data associated with the execution of the thread. A thread's context includes the contents of system registers and the virtual address belonging to the thread's process. Thus, the actual data comprising a thread's context varies as it executes.

The Component Object Model (COM) and Distributed Component Object Model (DCOM) are models used for object-oriented programming. The COM and DCOM specify how objects within a single application or between applications (e.g. client/server applications) interact and communicate by defining a set of standard interfaces. Interfaces are groupings of semantically related functions through which a client application accesses the services of a server application. Object Linking and Embedding (OLE), such as OLE Version 2 and ActiveX Controls (network activation controls) by the Microsoft Corporation of Redmond, Wash., are based in part on the Component Object Model and allow the creation of objects of different formats which operate on data through defined interfaces, rather than operating on the applications responsible for the data. ActiveX controls are based in part on OLE technologies. Object data can be embedded within an object, or linked to it, so that only a link reference to the data is stored in the object.

In accordance with an illustrative embodiment of the present invention, a method and apparatus for creating context-sensitive help functions is used. Context-sensitive help allows a user to select a software component that has been displayed on a display device and then request help on the function of the displayed software component. For example, a computer software application may have a dialog box with multiple graphical control objects for which context sensitive help is displayed. A dialog box is a pop-up box which displays additional information about the computer software application for a user. A graphical control object is an object which displays a graphical component such as a graphical button, graphical menu, or other graphical entity that accepts input from a user (e.g., allows the graphical object to be selected). An example of a graphical control object is an Object Linking and Embedding (OLE) control or an ActiveX control known to those skilled in the art. For more information on OLE controls see OLE Controls Inside Out, by Adam Denning, Microsoft Press, Redmond, Wash., 1995.

FIG. 2 illustrates a method 34 for creating help functions in an illustrative embodiment of the present invention. Method 34 is implemented in a dialog box help editor which is executed on computer system 10. A computer software application for which context-sensitive help functions are being created need not be complete or executable to use method 34. A set of dialog boxes contained within a computer software application are located at step 36. In response to a first selection input, a dialog box from the set of located dialog boxes is displayed on a display device at step 38. The displayed dialog box typically includes one or more graphical control objects. In response to a second selection input, a help function template for a graphical control object selected in the displayed dialog box is created at step 40. The selection inputs at steps 38-40 are typically made in response to inputs made by a user with a mouse or other pointing device. In an alternative embodiment of the present invention, the selection inputs are made by another computer software application executing on the local computer system 10, or a remote computer system (e.g., with a message or a function call). Help information data is received and incorporated into the help function template for the selected graphical control object at step 42. In an illustrative embodiment of the present invention, the help information data is input by a help writer. In an alternative embodiment of the present invention, the help information data is read from a file, or sent by another computer software application. Computer source code for a context-sensitive help function for the selected graphical control object is generated at step 44. The source code is generated automatically and includes the help information data received for the help function template. Each of the steps of method 34 are explained below.

FIG. 3 is a block diagram of a dialog-box-help-editor 46 which uses method 34 to create context-sensitive help functions. The dialog-box-help-editor 46 comprises the following components: a dialog-box-extraction-module 48, a dialog-box-creation-and-display-module 50, a dialog-box-data-organization-module 52, a help-topic-creation-module 54, a dialog-box-change-tracking-module 56, an on-demand-help-testing-module 58, and a dialog-box-code-generation-module 60. However, more or fewer modules could also be used. In addition, the functionality of one or more of modules 48-60 could be combined into one or more of modules 48-60, or the illustrative modules 48-60 could be split into additional modules. Dialog-box-help-editor 46 is used on computer system 10 to create context-sensitive help functions.

Dialog-box-extraction-module

A computer software application that is being developed may have one or more dialog boxes with one or more graphical controls. When a help writer desires to create a context-sensitive help function for a graphical control in a dialog box, the dialog-box-help-editor 46 is used. A user or other entity (e.g., another computer software application) selects a computer software application from the dialog-box-help-editor 46. The computer software application is used to perform a desired function (e.g., network communications) on computer system 10. In response to a selection input, a dialog-box-extraction-module 48 in the dialog-box-help-editor 46 locates at step 36 any dialog boxes in the selected computer software application that is being created. The computer software application need not be complete or executable to use dialog-box-help-editor 46.

FIG. 4 is a flow diagram showing a method 64 for locating dialog boxes at step 36 in accordance with the present invention. The dialog boxes are located without executing the computer software application which contains the dialog boxes. Dialog boxes are typically defined by dialog box templates. A dialog box template is a data structure that defines a dialog box and any graphical control objects it may contain. Information on dialog box templates can be found in the Win32 Application Programming Interfaces (APIs) by Microsoft Corporation. For more information on Win32 APIs see the Microsoft Corporation World Wide Web site at http://www.microsoft.com. However dialog box templates other than those defined by the Microsoft Corporation's Win32 APIs could also be used. To ensure that a help writer is provided access to any dialog boxes in a selected computer software application, dialog box templates are located by searching two types of files associated with a computer software application without executing the application. However, more than two types of files could also be searched.

Returning to FIG. 4, dialog box templates are located with dialog-box-help-editor 46 from dialog-box-extraction-module 48 by searching computer software applications stored as executable image files at step 66. An executable image file is a file that an operating system is able to execute on a computer system (e.g., an .EXE or Dynamic Link Library, or .DLL file executed on computer system 10). The dialog-box-extraction-module 48 locates dialog box templates in executable images at step 66 by searching for pre-defined published Win32 "executable file" APIs. Win32 executable file APIs are known to those skilled in the art.

Dialog box templates are also searched for in resources files (.RES) at step 68. A resource file is a binary-format file compiled from a human readable text file (.RC) that contains resources (e.g., as dialog box captions). A resource file may also be part of an executable image file. The dialog-box-extraction-module 48 locates dialog box templates in resource files at step 68 by searching through resource files following the pre-defined published Win32 "resource file" APIs. However, other searching methods could also be used to locate dialog boxes.

The dialog-box-extraction-module 48 does not make a copy of any dialog box templates it locates. Instead, it uses Win32 file memory mapping and stores the starting address location for dialog box templates in a dialog box search data structure at step 70 for later access. It also stores other relevant information such as dialog box captions and dialog box IDentifiers (IDs) in the dialog box data search structure as it searches files at steps 66-68. Pseudo-code for an illustrative dialog box search data structure is shown in Table 1 below.

                  TABLE 1     ______________________________________            dialog.sub.-- box.sub.-- search.sub.-- data.sub.-- structure {            address of dialog box template            dialog box ID            dialog box caption            other information fields            }  N!;     ______________________________________

The text" N!" indicates an array of "N" instances of the dialog box search data structure. However, more or fewer fields in the dialog box search data structure could also be used. In an alternative embodiment of the present invention, located dialog box templates are copied and stored in the dialog box data search structure shown in Table 1 by the dialog-box-extraction-module 48 and the Win32 file memory mapping is not used to locate the dialog box templates. The search steps 66-68 are completed without executing the computer software application which contains the dialog boxes.

Dialog-box-creation-and-display-module

When the dialog-box-help-editor 46 receives a selection input to display a dialog box at step 38, a dialog-box-creation-and-display-module 50 retrieves the address of a dialog box template for the selected dialog box. The selection input can come from a user (e.g., with a mouse click) or from another software application. The selected dialog box is located by retrieving the address of a corresponding dialog box template stored in the dialog box search data structure (Table 1) by the dialog-box-extraction-module 48. The dialog-box-creation-and-display-module 50 makes a copy of the retrieved dialog box template in memory. The dialog-box-creation-and-display-module 50 then modifies the dialog box template to include attributes required to ensure that the dialog box is visible to a user and can be moved about a display screen easily (e.g., dialog box size in display coordinates, etc.).

For a graphical control object to be displayed in a dialog box, its object class has to have been registered with the operating system. The object class for a graphical control object includes the display color, display cursor type, the message handler to be used for the control, and other object information. The dialog box creation and control module 50 automatically checks for unregistered controls and registers them. Once the dialog box template has been prepared in memory with controls registered, the dialog-box-creation-and-display-module 50 passes the dialog box template to the Win32 API used by the operating system (e.g., with CreateDialogIndirectParam) to create a dialog box user on a display device for a user. In an alternative embodiment of the present invention, the dialog-box-creation-and-control-module 50 creates the dialog box on a display device for a user without passing the dialog box template to the operating system.

Dialog-box-data-organization-module

Whenever the dialog-box-help-editor 46 displays a dialog box with the dialog-box-creation-and-display-module 50, it also creates an instance of an object containing object properties for any graphical control objects in the selected dialog box. The graphical control object properties are stored in a dialog object data structure and are managed by a dialog-box-data-organization-module 52. Pseudo-code for fields in the dialog object data structure is shown below in Table 2.

                  TABLE 2     ______________________________________     dialog.sub.-- object.sub.-- data.sub.-- structure {             Dialog box ID.             Dialog box caption.             Control ID.             Control caption.             Help ID associated with the control.             Help ID stored in the dialog template for the              control (if any).             Number (value) associated with the Help ID.             Coordinates of the rectangle that bounds the control.             Object class name for the control.             Whether or not the control is static (i.e., static              controls don not accept input from a user not do              they provide any output to a user. A label is an              example of a static control).             Whether or not the control has been clicked by              the user.             Whether or not the control has a default Help topic              (e.g., an "OK" or "Cancel" graphical button).             Whether or not the control has changed since the             last time the dialog box help editor project was             opened.             Annotation a user has assigned to the control              (if any).     ______________________________________

However, more or fewer object properties could also be stored in the dialog object data structure.

Once the dialog-box-help-editor 46 has created a dialog object data structure (Table 2) with the dialog-box-data-organization-module 52, it adds the graphical control object information for the dialog box to a control object map for later use. The control object map is a keyed list of graphical control objects in the dialog box. A combination of the dialog box ID and the control ID are used to create a unique key for each graphical control object in the control object map. However, other keys can also be used. The control object map is used to locate an individual graphical control object within a dialog box and is used by a help writer who is creating context-sensitive help functions.

In order to preserve the current state of a computer software application when it is closed, the dialog-box-help-editor 46 allows a user to save the control object managed by the dialog-box-data-organization-module 52 to a file. The dialog-box-help-editor 46 updates the control object map each time a dialog box is opened. (See the Dialog-box-change-tracking-module section below.)

Help-topic-creation-module

The dialog-box-help-editor 46 uses OLE Automation to drive development of context-sensitive help functions. OLE Automation provides the ability for a client software application to have a reference to an object in a server software application on the same computer system 10, even though the two applications are not sharing the process memory. For more information on OLE Automation see Inside OLE, 2nd Edition, by Kraig Brockschmidt, Microsoft Press, 1995. However, other automation methods could also be used.

In response to a selection input of a graphical control at step 40, the dialog-box-help-editor 46 creates a new help topic template using a help-topic-creation-module 54. The help-topic-creation-module 54 automatically assigns a Help ID (e.g., IDH₋₋ X₋₋ Y) for the help topic template to a selected control by using a combination of the dialog box ID (X) and the control ID (Y) to ensure uniqueness. For example, if the dialog box ID is 100 and the control ID is 102, the Help ID for the selected control would become a combination of the two (e.g., IDH₋₋ 100₋₋ 102). However, other methods may also be used for assigning Help IDs. A user may choose to assign his or her own ID to a control by using the custom Help ID option available in the help-topic-creation-module 54. For example, a user may create a Help ID for a graphical button as IDH₋₋ BUTTON.

FIG. 5 illustrates a method 72 for creating a context-sensitive help function for a graphical control object with the dialog-box-help-editor 46 at steps 40-42. The help-topic-creation-module 54 locates the selected control in the control object map (created by the dialog-box-data-organization-module 52) at step 74. Before creating a new context-sensitive help topic template, the help-topic-creation-module 54 checks to see if a help topic template already exists for the graphical control at step 76. If the help topic template does not exist, then an instance of a new help topic template is created at step 78. Creating a new help topic template includes creating a new Help ID for the selected graphical object control as was described above. The help-topic-creation-module 54 uses the Help ID for the selected control and creates a "footnote" for the help topic template using the Help ID as the footnote's identifier at step 80. Using object properties for the graphical control object, the help-topic-creation-module 54 adds "hidden" text to the footnote for the help topic template that includes the dialog box caption, the graphical control object caption, and the graphical control object's class name at step 82. The hidden text is used by a help writer to determine which dialog box and graphical object control are associated with the help topic template and are not typically displayed for a user. The help-topic-creation-module 54 applies a "bookmark" to the context-sensitive help topic template at step 84 to enable the dialog-box-help-editor 46 to locate the help topic template quickly and easily at a later time.

Help information data is received for the help topic template at step 42. The help information data is typically input by a help writer but may be read from a file or received from another computer software application. The dialog-box-help-editor 46 incorporates the help topic template with the appropriate help information data at step 86. The help topic template with the received help information data will be used to generate computer source code for a context-sensitive help function at step 44 as will be explained below.

If a help topic template already exists (i.e., was previously created using method 72) for the graphical control object at step 76, the help-topic-creation-module 54 instructs the dialog-box-help-editor 46 to jump to the bookmark for the existing help topic template at step 88. The existing help topic template can then be edited to change existing help information data.

Dialog-box-change-tracking-module

Each time the dialog-box-help-editor 46 displays a dialog box at step 38, it checks for any changes made to graphical control objects for the dialog box by comparing dialog box object data it has saved with dialog box object data in the current copy of the computer software application. The dialog-box-help-editor 46 uses a dialog-box-change-tracking-module 56 to track dialog box changes. As is shown in FIG. 6, the dialog-box-change-tracking-module 56 uses method 90 to track changes in dialog boxes. A selected dialog box template is located using stored locations from step 36 at step 92. If the dialog-box-change-tracking-module 56 finds that a graphical control object has changed in a selected dialog box at step 94, it marks a change attribute in the dialog object data structure (Table 2) at step 96. At step 98, the dialog-box-change-tracking-module 56 indicates that the dialog box has changed when the dialog box is displayed at step 38 by highlighting the selected dialog box (e.g., with a new display color).

To keep context-sensitive help information synchronized with the current executable image or resource files that comprise a computer software application, the dialog-box-change-tracking-module 56 updates the control object map as it is checking for changes in the dialog box at step 100. The control object map was created by the dialog-box-data-organization-module 52 discussed above. Upon a selection request at step 102, the dialog-box-change-tracking-module 56 highlights the graphical controls that have changed. If desired at step 102, the dialog box tracking module 56 displays detailed information about the changes made to a graphical control at step 104.

On-demand-help-testing-module

To allow help writers to see the help information they are writing as it will appear in the finished application, the dialog-box-help-editor 46 is able to create a temporary help file and implement context-sensitive help in a dialog box that it is currently displaying with an on-demand-help-testing-module 58. The context-sensitive help is displayed without executing the computer software application being developed.

As is shown in FIG. 7, method 106 is used according to the present invention to provide on-demand help testing with an on-demand-help-testing-module 58. To create a help file, the on-demand-help-testing-module 58 saves help information created by the help-topic-creation-module 54 in a temporary file at step 108. In an illustrative embodiment of the present invention, the help information is saved in a Rich Text Format (.RTF) in a temporary file. The Rich Text Format is known to those skilled in the art. However, other formats, can also be used. Using the object properties of the graphical controls in the dialog box, the on-demand-help-testing-module 58 dynamically constructs an array of control IDs and Help IDs at step 110.

If necessary at step 112, the attributes of the dialog box are modified in the dialog object data structure (Table 2) at step 114. The modifications include ensuring that the context Help question mark (?) graphical button appears in the title bar displayed by the Windows operating system. The on-demand-help-testing-module 58 then calls the Microsoft Help Workshop system to compile the RTF file and array of control IDs and Help IDs into a help file that can be used to display the help information at step 116. However, other applications could also be used to compile the help file. The help file can be used with the dialog-box-help-editor 46 to test context-sensitive help functionality without executing the computer software application being developed.

As is shown in FIG. 8, context-sensitive help is tested using the help file and the dialog-box-help-editor 46 with method 118. When a graphical control in a dialog box is selected for a context-sensitive help function residing in the saved help file at step 120, the dialog-box-help-editor 46 will receive a context-sensitive help message sent by the operating system. When the dialog-box-help-editor 46 receives a context-sensitive help message, the editor 46 passes the message to the on-demand testing module 58. The on-demand testing module 58 calls the Windows Help system at step 122, and passes it a pointer to the array of control IDs and Help IDs saved in the help file at step 116. Subsequently, the Windows Help system displays at step 124 the appropriate help topic for the selected graphical control object in a pop-up testing window. The context-sensitive help functions are tested without executing the computer software application in which they will be included. An illustrative embodiment of the present invention allows for creating and testing of the context-sensitive help functions before the computer software application in which they will be included is complete by interfacing with the operating system and receiving context-sensitive help messages in the dialog-box-help-editor 46. In an alternative embodiment of the present invention, the dialog-box-help-editor 46 displays the appropriate help topic for the control in a pop-up window for a user without operating system interactions or using the Windows Help System.

Methods 106 and 118 provide an advantage for developing and testing context-sensitive help functions that will be used by a computer software application. Instead of merely displaying a help topic in a pop-up window, the dialog-box-help-editor 46, implements and uses context-sensitive help in the same manner the finished computer software application will use (e.g., receiving a message to display a help topic). This allows a help writer to test the implementation of context-sensitive help functions after they are created and observe how the context-sensitive help function will behave in the finished application without executing the finished application.

Dialog-box-code-generation-module

The dialog-box-help-editor 46 uses a dialog-box-code-generation-module 60 to generate source code for a context-sensitive help function at step 44. The dialog-box-code-generation-module 60 generates header files and help data structures (e.g., arrays of the Help IDs generated) required for implementing context-sensitive help in an application. Since the dialog-box-help-editor 46 stores the properties for the controls in a control object map, it is relatively easy for it to generate help header files and help data structures in multiple formats by simply filtering the data in the control object map using the dialog-box-code-generation-module 60.

As is shown in FIG. 9, a method 126 according the present invention is used by the dialog-box-code-generation-module 60 to generate code for context-sensitive help functions. The dialog-box-code-generation-module 60 displays the help header and help data structures in an editing window at step 128. The help header and help data structures can be modified in the editing window. The dialog-box-code-generation-module 60 checks at step 130 if every graphical control object in the control object map is to be included in the help header and help data structure(s). If so, at step 130 every graphical control object in the control object map is used to generate the help header and help data structure(s) at step 132. If not, just those dialog boxes that have controls selected are used at step 134. This step allows graphical controls which are not needed by the computer software application to be removed (e.g., graphical controls for optional software components). In an alternative embodiment of the present invention, less than every graphical control in the control object map and less than all controls selected can be used to generate the help header files and help data structures.

The dialog-box-code-generation-module 60 checks at step 136 if a single help data structure for all of the located dialog boxes is to be created. If so, at step 138, a single help data structure is created for all located dialog boxes. If not, an individual help data structure for each located dialog box is created at step 140. This step allows multiple dialog boxes to use the same control IDs and Help Ids. In an alternative embodiment of the present invention, the single help data structure can contain less than all of the located dialog boxes, or an individual data structure is not created for each located dialog box (i.e., one or more located dialog boxes are skipped).

In an illustrative embodiment of the present invention controls that have default help topics (e.g., the "OK" or "CANCEL" buttons) are included in the generated help header files and help data structures when the default help topics have been overridden. This feature allows a help writer to alter the default help topic information. In an alternative embodiment of the present invention, controls that have default help topics which are not altered are also included.

If a help writer specifies a help header file in the computer software application that contains control IDs, the dialog-box-code-generation-module 60 is able to automatically substitute control ID numeric values with their mnemonic equivalent for a context-sensitive help function. Dialog box templates typically contain only numeric control ID values. As is known in the art, it is considered good programming practice to use mnemonic identifiers (e.g., IDC₋₋ BUTTON) in source code instead of actual numeric values (e.g., 100, where IDC₋₋ BUTTON=100).

Once the computer source code for context-sensitive help have been generated by the dialog-box-help-editor 46, the help header files and help data structures can be used by software developers as the development of a computer software application is completed. This helps the help writers and software developers coordinate their changes and makes the software development more efficient and less prone to errors.

The method 34 and editor 46 of the illustrative embodiment of the present invention provides the following advantages. If dialog boxes or graphical controls change during the development process, the dialog-box-help-editor 46 notes the changes and informs a help writer. The dialog-box-help-editor 46 can then easily regenerate new help source code to reflect the changes. If multiple dialog boxes use the same control IDs, the dialog-box-help-editor 46 can generate one help array per dialog box to circumvent this problem. The dialog-box-help-editor 46 allows a help writer to associate a single Help ID with multiple controls in one or more dialog boxes. The dialog-box-help-editor 46 notes which controls have default help topics, and checks if a help writer has overridden the default help topics. Since the dialog-box-help-editor 46 extracts dialog box templates from executable and resource files, it has access to and can display any dialog boxes that have been already created. The computer software application containing the dialog boxes need not be executed to use the dialog-box-help-editor 46. The dialog-box-help-editor 46 allows context-sensitive help to be dynamically implemented by a help writer. Since the implementation and execution is the same in the dialog-box-help-editor 46 as it is in the finished application, the help writer can test the context-sensitive help functionality as well as examine the help information created. The dialog-box-help-editor 46 manages all of the Help IDs in a software application being developed so there is no confusion between help writers and software developers over Help IDs, etc.

It should be understood that the programs, processes, and methods described herein are not related or limited to any particular type of computer apparatus, unless indicated otherwise. Various types of general purpose or specialized computer apparatus may be used with or perform operations in accordance with the teachings described herein.

In view of the wide variety of embodiments to which the principles of our invention can be applied, it should be understood that the illustrated embodiments are exemplary only, and should not be taken as limiting the scope of our invention. Rather, we claim as our invention all such embodiments as come within the scope and spirit of the following claims and equivalents thereto. 

We claim:
 1. A computer implemented method of creating a context-sensitive help function in a computer software application, wherein the context-sensitive help function is made part of the computer software application, the method comprising:locating dialog boxes contained within the computer software application; in response to a first selection input, displaying a selected dialog box on a display device, the dialog box including one or more graphical control objects; in response to a second selection input, creating a help topic template for a selected graphical control object in the displayed dialog box; receiving help information data, the help information data including help information text and a help information identifier; incorporating the help information data into the help topic template; and creating a context-sensitive help function that associates the help topic template with the selected graphical control object as used in the selected dialog box.
 2. A computer-readable storage medium having stored therein computer executable instructions for performing the method of claim
 1. 3. The method of claim 1 wherein creating a context-sensitive help function includes generating data structures containing the help information data.
 4. The method of claim 1 wherein locating dialog boxes contained within the computer software application comprises:searching executable image files and resource files of the computer software application for dialog boxes; recording locations of dialog boxes encountered during the search; and the locating step performed without executing the computer software application.
 5. A computer-readable storage medium having stored therein computer executable instructions for performing the steps recited in claim
 4. 6. A computer-implemented help editor programmed for performing the method of claim
 1. 7. The method of claim 1 further comprising:saving in a temporary file the context-sensitive help function created; constructing a help data structure including a list of graphical control objects for which context-sensitive help functions have been created; compiling into a help file the context-sensitive help function saved in the temporary file and the help data structure.
 8. A computer-readable storage medium having stored therein computer executable instructions for performing the method of claim
 7. 9. The method of claim 7 further comprising:in response to a third selection input, displaying on a display device using the help file, context-sensitive help information from a context-sensitive help function of a newly selected graphical control object.
 10. The method of claim 9 wherein said displaying is completed without executing the computer software application.
 11. The method of claim 9 wherein said displaying includes calling a help display system, and passing the help file to display context-sensitive help information from the context-sensitive help function of the newly selected graphical control object.
 12. A computer-readable storage medium having stored therein computer executable instructions for performing the steps recited in claim
 9. 13. The method of claim 1 further comprising:repeating the preceding actions to create a plurality of context-sensitive help functions; saving in a temporary file any context-sensitive help functions created; constructing a help data structure including a list of graphical control objects for which context-sensitive help functions have been created; compiling into a help file the context-sensitive help functions saved in the temporary file and the help data structure.
 14. A computer-readable storage medium having stored therein computer executable instructions for performing the steps recited in claim
 13. 15. The method of claim 1 wherein creating a context-sensitive help function includes generating computer source code for the selected graphical control object, the computer source code including context-sensitive help functions.
 16. A computer-readable storage medium having stored therein computer executable instructions for performing the steps recited in claim
 15. 17. In a computer system used for creating a plurality of computer software applications with context-sensitive help functions, a computer implemented method of locating dialog boxes for adding context-sensitive help functions thereto, the method comprising:searching for dialog boxes in executable image files of a computer software application; searching for dialog boxes in resource files of the computer software application; and recording locations of dialog boxes encountered during the search, the recorded locations used to provide access to dialog boxes for which context-sensitive help functions are created.
 18. A computer-readable storage medium having stored therein computer executable instructions for performing the method of claim
 17. 19. The method of claim 17 wherein searching for dialog boxes in executable image files includes searching for pre-defined executable file application program interfaces within the executable image files.
 20. A computer-readable storage medium having stored therein computer executable instructions for performing the steps recited in claim
 19. 21. The method of claim 17 wherein searching for dialog boxes in resource files includes searching for pre-defined resource application file program interfaces within the resource files.
 22. The method of claim 17 wherein recording includes recording dialog box caption information and dialog box identifier in a dialog box search data structure for dialog boxes encountered.
 23. The method of claim 22 wherein recording comprises recording the address of dialog box template data structures for dialog boxes encountered, the dialog box search data structures including information used to display the dialog box.
 24. A computer-readable storage medium having stored therein computer executable instructions for performing the steps recited in claim
 22. 25. The method of claim 17 further comprising:in response to a selection input, using the recorded locations to locate a dialog box; creating and displaying a dialog box on a display device; creating and displaying any graphical control objects for the dialog box on a display device; and in response to a selection input, providing a help function template used to create a context-sensitive help function for a selected graphical control object.
 26. The method of claim 25 wherein creating and displaying the graphical control object includes:creating an instance of a graphical control object in memory that contains control object properties for the graphical control object; and adding a memory address of the instance of the control object to a control object map, wherein the control object map is associated with a dialog box.
 27. A computer-readable storage medium having stored therein computer executable instructions for performing the steps recited in claim
 25. 28. The method of claim 17 further comprising:in response to a selected input, using the recorded locations to locate a dialog box; determining whether a graphical control object for the selected dialog box has been registered with an operating system being used with the computer system, and if not,registering the graphical control object with the operating system before the dialog box is created and displayed on a display device; creating and displaying the selected dialog box on a display device; creating and displaying the graphical control object for the selected dialog box on a display device; and creating a context-sensitive help function for the graphical control object.
 29. A computer-readable storage medium having stored therein computer executable instructions for performing the steps recited in claim
 28. 30. The method of claim 17 further comprising:in response to a selection input, using the recorded locations to locate a dialog box of the computer software application; determining whether any graphical control objects in the selected dialog box have been modified since the dialog box was last selected, using a dialog box data structure, and if so:updating the dialog box data structure including properties for the selected dialog box to indicate any modifications; updating a control object map data structure for the selected dialog box to reflect modifications to any graphical control objects; and allowing context-sensitive help functions for any modified graphical control objects to be modified.
 31. A computer-readable storage medium having stored therein computer executable instructions for performing the actions recited in claim
 30. 32. The method of claim 30 further comprising:displaying the selected dialog box on a display device after using the recorded locations to locate the selected dialog box.
 33. The method of claim 32 wherein, if any graphical control objects in the selected dialog box have been modified since the dialog box was last selected, said determining includes:highlighting any modified graphical control objects in the selected dialog box displayed on the display device.
 34. A computer-readable storage medium having stored therein computer executable instructions for performing the steps recited in claim
 32. 35. The method of claim 30 wherein, if any graphical control objects in the selected dialog box have been modified since the dialog box was last selected, said determining includes:in response to an input request, providing information about the modifications to any graphical control objects in the selected dialog box using the control object map data structure.
 36. A computer-readable storage medium having stored therein computer executable instructions for performing the steps recited in claim
 35. 37. In a computer system used for creating a plurality of computer software applications with context-sensitive help functions, a computer implemented method of creating a context-sensitive help function, the method comprising:locating a selected graphical control object for a selected dialog box in a computer software application; determining whether the selected graphical control object has an existing help topic template, and if not:creating a new help topic template; creating a help footnote for the new help topic template; adding footnote information to the help footnote to identify the selected graphical control object and the selected dialog box; applying a bookmark to the new help topic template to allow the help topic template to be located; and incorporating help information data into the new help topic template.
 38. A computer-readable storage medium having stored therein computer executable instructions for performing the method of claim
 37. 39. The method of claim 37 wherein the footnote information added to the help footnote includes a dialog box caption, a graphical control object caption, and graphical control object class name.
 40. A computer-readable storage medium having stored therein computer executable instructions for performing the steps recited in claim
 39. 41. The method of claim 37 wherein the selected graphical control object is highlighted on a display device to indicate selection.
 42. The method of claim 37 further comprising:creating a context-sensitive help function with the help topic template; and using the context-sensitive help function with the computer software application to provide context-sensitive help for the selected graphical control object.
 43. A computer-readable storage medium having stored therein computer executable instructions for performing the steps recited in claim
 42. 44. A computer-implemented editor for creating context-sensitive help functions for a computer software application, wherein the context-sensitive help functions are made part of the computer software application, the editor comprising:means for locating dialog boxes contained within the computer software application without executing the computer software application; means for retrieving a selected dialog box including one or more graphical control objects; means for creating a help topic template for a selected graphical control object; means for receiving help information data, the help information data including help information text and a help identifier; means for incorporating the help information data into the help topic template; and means for creating a context-sensitive help function that associates the help topic template with the selected graphical control object as used in the selected dialog box.
 45. A help topic template data structure embodied in a computer-readable medium, said data structure operating in a computer system used during development of a computer software application to create context-sensitive help functions for the computer software application, said data structure comprising a plurality of cells for storing information about the context-sensitive help functions of the computer software application, each cell comprising a plurality of data structure fields, the computer software application having one or more dialog boxes with one or more graphical control objects in the dialog boxes, each cell of the help topic template data structure comprising:a data structure field for storing context-sensitive help information text; a data structure field for storing a context-sensitive help information identifier; a data structure field for storing a dialog box identifier; and a data structure field for storing a graphical control object identifier.
 46. In a computer system used for creating a plurality of computer software applications with context-sensitive help functions, a computer implemented method of creating context-sensitive help functions in a computer software application, wherein the context-sensitive help functions are made part of the computer software application, the method comprising:locating dialog boxes contained within the computer software application; in response to a first selection input, displaying a selected dialog box on a display device, the dialog box including one or more graphical control objects; in response to a second selection input, selecting at least one graphical control object in the displayed dialog box; determining whether computer source code will be generated for graphical control objects selected from the dialog box, and if so:generating computer source code for graphical control objects selected from the dialog box, the computer source code including context-sensitive help functions; and if not:generating computer source code for graphical control objects in the computer software application, including graphical control objects from the dialog box not selected, the computer source code including context-sensitive help functions.
 47. A computer-readable storage medium having stored therein computer executable instructions for performing the actions recited in claim
 46. 48. The method of claim 46 further comprising:determining whether a single computer data structure containing context-sensitive help information for the located dialog boxes should be generated in the computer source code, and if so:generating the single computer data structure for the located dialog boxes; and if not:generating a plurality of computer data structures including one or more individual data structures for the located dialog boxes.
 49. The method of claim 48 wherein generating a plurality of computer data structures includes not generating an individual data structure for selected ones of the dialog boxes.
 50. A computer-readable storage medium having stored therein computer executable instructions for performing the steps recited in claim
 48. 51. The method of claim 46 wherein generating computer source code for graphical control objects selected includes generating computer source code for less than all graphical control objects selected. 